<div class="container main" style="margin-top: 40px;">



    <form class="form-horizontal myForm" id="myForm" action="" method="post">
    <input type="hidden" name="user_id" value="<?=$data['user_id']?>">
        <strong class="st">员工离职</strong>
        <span class="sp"><?=$data['user_data']['user_name']?><em><?=$data['job_info']['position_name']?>-<?=$data['p_leave'][$data['user_data']['p_level']]['degree']?>-<?=$data['m_leave'][$data['user_data']['m_level']]['degree']?>（<?=$data['job_info']['city_name']?><?=$data['job_info']['bu_name']?><?=$data['job_info']['department_name']?>）</em></span>

        <fieldset>
            <div class="control-group fst">
                <label class="control-label"><em class="star">* </em>离职类型：</label>
                <div class="controls docs-input-sizes">
                <?php foreach($data['leave_type'] as $k=>$val):?>
                    <label class="radio inline">
                        <input type="radio" class="inline" name="optionsRadios" id="optionsRadios<?=$k?>" value="<?=$k?>" <?php if($k==1):?>checked="" <?php endif;?> /><?=$val?>
                    </label>
                <?php endforeach;?>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"><em class="star">* </em>离职原因：</label>
                <div class="controls docs-input-sizes">
                    <select class="{min:1,messages:{min:'&nbsp;&nbsp;请选择离职原因！'}}" name="reason1" id="reason1">
                        <option value="0">-请选择-</option>
                        <?php foreach($data['leave_active'] as $k=>$val):?>
                        <option value="<?=$k?>"><?=$val?></option>
                        <?php endforeach;?>
                    </select>

                    <select class="{min:1,messages:{min:'&nbsp;&nbsp;请选择离职原因！'}}" name="reason2" id="reason2" style="display:none;">
                        <option value="0">-请选择-</option>
                        <?php foreach($data['leave_passive'] as $k=>$val):?>
                        <option value="<?=$k?>"><?=$val?></option>
                        <?php endforeach;?>
                    </select>

                    <?php if($data['leave_no_arrive']):?>
                    <select name="reason3" id="reason3" style="display:none;">
                    <?php foreach($data['leave_no_arrive'] as $k=>$val):?>
                        <option value="<?=$k?>"><?=$val?></option>
                        <?php endforeach;?>
                    </select>
                    <?php endif;?>
                </div>
            </div>

             <div class="control-group" style="display: none;" id="iptReason">
                <label class="control-label"></label>
                <div class="controls docs-input-sizes">
                    <input type="text" value="" placeholder="请输入离职原因" name="otherReason" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">下级人数：</label>
                <div class="controls docs-input-sizes lin30">
                    <?php if($data['lower_num']):?>
                    <a href="<?=$data['sub_url']?>" target="_blank"><?=$data['lower_num']?></a>
                    <?php else:?>
                    <?=$data['lower_num']?>
                    <?php endif;?>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"><em class="star">* </em>最后工作日：</label>
                <div class="input-append">
                    <input id="datepicker" type="text" class="{required:true,messages:{required:'&nbsp;&nbsp;请选择最后工作日！'}} span2" name="lastDay" style="float: left;"/>
                    <span class="add-on" style="float: left;"><i class="icon-calendar"></i></span>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label"><em class="star">* </em>离职办理时间：</label>
                <div class="input-append">
                    <input id="datepicker1" type="text" class="{required:true,messages:{required:'&nbsp;&nbsp;请选择离职办理时间！'}} span2" name="dimissionDay" style="float: left;" />
                    <span class="add-on" style="float: left;"><i class="icon-calendar"></i></span>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">&nbsp;</label>
                <input type="submit" value="保存" class="btn btn-primary" />
                <!--<input type="button" value="取消" class="btn" />-->
            </div>

        </fieldset>
    </form>

</div>


<?php $this->script_block_begin(); ?>
<script type="text/javascript">
</script>
<?php $this->script_block_end(); ?>